/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package praktikum_3.percobaan_1;
import java.util.*;
/**
 *
 * @author Liem
 */
public class Employee {

    private String name;
    private double salary;
    private Date hireDay;
    
    public Employee (String name, double salary, int year, int month, int day){
        this.name = name;
        this.salary = salary;
        GregorianCalendar calendar = new GregorianCalendar(year,month-1,day);
        this. hireDay = calendar.getTime();
    }
    
    public Date getHireDay(){
        return hireDay;
    }
    
    public String getName(){
        return name;
    }
    
    public double getSalary(){
        return salary;
    }
    
    public void raiseSalary(double byPercent){
        double raise = salary * byPercent /100;
        salary += raise;
    }


}
